#! /usr/bin/env python
#coding=utf-8

import rospy
from geometry_msgs.msg import Twist




if __name__=="__main__":

    rospy.init_node("my_control_p")

    pub = rospy.Publisher("/turtle1/cmd_vel",Twist,queue_size=10)

    msg = Twist()

    msg.linear.x = 1
    msg.linear.y = 0
    msg.linear.z = 0

    msg.angular.x = 0
    msg.angular.y = 0
    msg.angular.z = 0.5
    rate = rospy.Rate(10)
    while not rospy.is_shutdown():
        pub.publish(msg)
        rate.sleep